const http = uni.$u.http
// 发送注册或登录验证码
export const sendRegisterOrLoginCaptcha = (data) => http.get('/sms/sendRegisterOrLoginCaptcha', {params:data})
// 手机验证码登录
export const loginByMobile = (data)=> http.post('/u/loginByMobile',data)

// 用户名密码登录  test 123456 
export const loginByJson = (data)=> http.post('/u/loginByJson',data)

// 获取用户信息
export const getInfo = (data) => http.get('/member/getInfo', {params:data})

// 退出登录
export const logout = (data) => http.get('/u/logout', {params:data})